package example.my_practice;

import com.alibaba.fastjson.JSONArray;

import java.util.Arrays;
import java.util.List;

/**
 * TODO
 *
 * @author zgq
 * @date 2020/11/9 11:03
 */
public class MyJson {
    public static void main(String[] args) {
        String s = "[\"646579,649979,650575,652581,655295,657848,660643,663046,667681,669707\",\"646578\"]";
        List<String> list = JSONArray.parseArray(s, String.class);
        String s1 = list.get(0);
        List<String> list1 = Arrays.asList(s1.split(","));
        System.out.println("{\"规格\":\"默认\"}");
    }
}
